<template>
  <div id="app">
    <div class="home-art"></div>
    <header class="header">
      <a class="logo pull-left" href="#/"></a>
    </header>

    <div class="page left">
      <upload-box/>
    </div>
    <div class="page right">
      <transition name="right">
        <router-view/>
      </transition>
    </div>

  </div>
</template>

<script>
import UploadBox from './components/UploadBox';
export default {
  name: 'App',
  components: {
    UploadBox
  }
}
</script>

<style lang="less">
#app {
  min-width: 1000px;
  min-height: 600px;
  overflow: hidden;
}

.home-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-image: url(./assets/homepage_bg.jpg);
  z-index: 0;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  padding: 28px 30px;
  box-sizing: border-box;
  z-index: 100;

  .logo {
    display: block;
    position: relative;
    width: 120px;
    height: 40px;
    background: url(./assets/logo2x.png) no-repeat center;
    background-size: contain;
  }
}

.right-enter-active, .right-leave-active {
  transition: all .4s cubic-bezier(.8,.01,.47,.9);
}
.right-enter, .right-leave-to {
  opacity: 0;
  transform: translate(100%, 0);
}
</style>
